@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#submit-btn {
    margin-bottom: 20px !important;
}
.gpt-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 900px;
    margin: 0 auto; /* 将表单水平居中对齐 */
}
#gpt-form textarea {
    display: block;
    margin: auto;
    height: 70px;
    width: 700px;
    box-sizing: border-box;
    margin-bottom: 20px;
}
#gpt-form button {
    display: block;
    margin: 20px auto 0;
}


form {
    margin-top: 1rem;
    position: relative;
}
label, input, button {
    margin: 0.5rem;
}
button {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 0.25rem;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
}
button:hover {
    background-color: #0069d9;
}
#loading-spinner {
    position: absolute;
    top: 0;
    right: -2rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 0.2rem solid rgba(0, 0, 0, 0.2);
    border-top-color: #007bff;
    animation: spin 1s linear infinite;
    visibility: hidden;
}
#submit-btn:disabled + #loading-spinner {
    visibility: visible;
}